#include<bits/stdc++.h>
#define MAX 1000010
using namespace std;
int n,r[MAX],tmp[MAX],vis[MAX];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    int ans=n;
    for(int i=0;i<n;i++){
        scanf("%d",&r[i]);
        tmp[i]=r[i];
    }
    sort(tmp,tmp+n);
    for(int i=1;i<n;i++){
        for(int j=0;j<i;j++){
            if(tmp[j]<tmp[i]&&tmp[j]!=0&&vis[i]!=1){
                vis[i]=1;
                tmp[j]=0;
                ans--;
            }
        }
    }
    printf("%d",ans);
    fclose(stdin);
    fclose(stdout);
    return 0;
}
